﻿// Author:					HungNM
// Created:					27-07-2012
// Last Modified:			27-07-2012
//

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Security.Cryptography;
using System.Web;
using System.Web.UI.HtmlControls;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace eProject.Business
{
    public class SiteUtils
    {
        public static void BindNumber(int number, DropDownList control)
        {
            if (number > 0 && control != null)
            {
                control.Items.Clear();
                control.ClearSelection();
                for (int i = 0; i <= number; i++)
                {
                    ListItem item = new ListItem();
                    item.Text = i.ToString();
                    item.Value = i.ToString();
                    control.Items.Add(item);
                }
            }
        }
    }
}
